package com.wealth.wechat.enums;

/**
 * 应用授权作用域
 * @author chan
 */
public enum ScopeEnum {
	BASE(1,"静默授权"),USERINFO (2,"弹出授权页面");
	
	private int value;
	private String comment;
	
	
	private ScopeEnum(int value, String comment) {
		this.value = value;
		this.comment = comment;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public static ScopeEnum get(int value){
		for (ScopeEnum o:ScopeEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
	
}
